package com.wangdao.wechatmall.bean.vo.wx;

import com.wangdao.wechatmall.bean.pojo.Address;
import com.wangdao.wechatmall.bean.pojo.Cart;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

/**
 * @ClassName: WXCartCheckOutVO
 * @Description
 * 用来封装http://182.92.235.201:8083/wx/cart/checkout?cartId=298&addressId=0&couponId=0&grouponRulesId=0
 * 返回结果的VO类
 * @Author Xinhao Yi
 * @Date 2021/7/12  23:00
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class WXCartCheckOutVO {

    /**
     * grouponPrice : 0
     * grouponRulesId : 0
     * checkedAddress : {"id":0}
     * actualPrice : 530.0
     * orderTotalPrice : 530.0
     * couponPrice : 70.0
     * availableCouponLength : 25
     * couponId : 81
     * freightPrice : 0
     * checkedGoodsList : [{"id":298,"userId":1,"goodsId":1181048,"goodsSn":"222","goodsName":"测试手机","productId":400,"price":300,"number":2,"specifications":["高端","红色"],"checked":true,"picUrl":"http://182.92.235.201:8083/wx/storage/fetch/dy5z5f90yo6m9oul2tz8.png","addTime":"2021-07-12 20:08:51","updateTime":"2021-07-12 20:09:14","deleted":false}]
     * goodsTotalPrice : 600.0
     * addressId : 0
     */

    //团购
    private int grouponPrice;
    private int grouponRulesId;
    //用户地址
    private Address checkedAddress;
    //价格
    private BigDecimal actualPrice;
    private BigDecimal orderTotalPrice;
    private BigDecimal couponPrice;
    private int availableCouponLength;
    private int couponId;
    private int freightPrice;
    private BigDecimal goodsTotalPrice;
    private int addressId;
    private List<Cart> checkedGoodsList;





}
